<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="$!webPath/resources/style/system/manage/$!{config.websiteCss}/template.css"  rel="stylesheet" type="text/css"/>
<link href="$!webPath/resources/style/common/css/overlay.css" type="text/css" rel="stylesheet" />
<link  href="$!webPath/resources/style/common/css/jquery-ui-1.8.22.custom.css" type=text/css rel=stylesheet>
<script src="$!webPath/resources/js/jquery-1.8.3.min.js"></script>
<script src="$!webPath/resources/js/jquery.validate.min.js"></script>
<script src="$!webPath/resources/js/jquery.shop.common.js"></script>
<script src="$!webPath/resources/js/jquery.poshytip.min.js"></script>
<script src="$!webPath/resources/js/jquery-ui-1.8.21.js"></script>
<script src="$!webPath/resources/js/jquery.zh.cn.js"></script>
</head>
<body>
<div class="cont">
  <h1 class="seth1">积分商城</h1>
  <div class="settab"><span class="tab-one"></span> <span class="tabs"> <a href="$!webPath/admin/integral_goods.htm">礼品列表</a> | <a href="$!webPath/admin/integral_goods_add.htm">新增礼品</a> | <a href="$!webPath/admin/integral_order.htm" class="this">兑换列表</a> </span> <span class="tab-two"></span></div>
   <form method="post" id="queryForm">
  <div class="shop_search"> <span >兑换单号</span><span class="shopn_search">
    <input name="igo_order_sn" type="text" id="igo_order_sn" />
    </span> <span> 会员名称</span><span class="shopn_search">
    <input name="userName" type="text" id="userName" />
    </span> <span class="shopg_search">
    <select name="igo_payment" id="igo_payment">
      <option value="">支付方式</option>
      <option value="alipay">支付宝</option>
      <option value="wxcodepay">微信扫码支付</option>
      <option value="weixin_wap">微信公众号支付</option>
      <option value="tenpay">财付通</option>
      <option value="bill">快钱支付</option>
      <option value="chinabank">网银在线</option>
      <option value="outline">线下支付</option>
      <option value="balance">余额支付</option>
      <option value="no_fee">免运费</option>
    </select>
    </span> <span class="shopg_search">
    <select name="igo_status" id="igo_status">
      <option value="">状态</option>
      <option value="0">未付款</option>
      <option value="10">待审核</option>
      <option value="20">已付款</option>
      <option value="30">已发货</option>
      <option value="40">已完成</option>   
      <option value="-1">已取消</option>  
    </select>
    </span> <span class="btn_search">
    <input name="" type="submit"  value="搜索" style="cursor:pointer;" />
    </span>
   </div>
   </form>
    <form method="post" id="ListForm">
  <div class="shop_table">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr style="background: #if($!config.websiteCss=='blue') #2A7AD2 #end 
      #if($!config.websiteCss=='black')#333 #end; height:30px; color:#FFF">
        <td width="20%" align="center">兑换单号</td>
        <td width="10%" align="left">会员名称</td>
        <td width="10%" align="center">兑换积分</td>
        <td width="10%" align="center">运费</td>
        <td width="10%" align="center">支付方式</td>
        <td width="10%" align="center">兑换时间</td>
        <td width="10%" align="center">状态</td>
        <td  align="center">操作</td>
      </tr>
      #foreach($obj in $objs)
      <tr>
        <td align="center">$!{obj.igo_order_sn}</td>
        <td align="left">$!{obj.igo_user.userName}</td>
        <td align="center"> $!{obj.igo_total_integral}</td>
        <td align="center">$!{obj.igo_trans_fee}</td>
         #if($!obj.igo_payment=="alipay")
            #set($payment="支付宝")
         #end
         #if($!obj.igo_payment=="tenpay")
            #set($payment="财付通")
         #end
         #if($!obj.igo_payment=="bill")
            #set($payment="快钱")
        #end                 
        #if($!obj.igo_payment=="chinabank")
            #set($payment="网银在线")
        #end       
        #if($!obj.igo_payment=="outline")
            #set($payment="线下支付")
        #end                  
        #if($!obj.igo_payment=="balance")
            #set($payment="预存款支付")
        #end 
        #if($!obj.igo_payment=="no_fee")
            #set($payment="无运费订单")
        #end 
        #if(!$!obj.igo_payment)
            #set($payment="未支付")
        #end
        <td align="center">$!payment </td>
        <td align="center">$!CommUtil.formatLongDate($!obj.addTime)</td>
               #if($!obj.igo_status==-1)
                  #set($status="已取消")
                #end
                #if($!obj.igo_status==0)
                  #set($status="待付款")
                #end
                #if($!obj.igo_status==10)
                  #set($status="线下支付待审核")
                #end
                #if($!obj.igo_status==20)
                  #set($status="已付款，待发货")
                #end
                #if($!obj.igo_status==30)
                  #set($status="已发货")        
                #end                
                #if($!obj.igo_status==40)
                #set($status="已收货完成")
                #end    
        <td align="center">$!status</td>
        <td class="bjsc" align="center">
         <a href="$!webPath/admin/integral_order_view.htm?id=$!obj.id">查看</a>
         #if($!obj.igo_status<30&&$!obj.igo_status>-1)|<a href="javascript:void(0);" onclick="if(confirm('取消订单将会返回对应的积分，是否继续?'))window.location.href='$!webPath/admin/integral_order_cancel.htm?id=$!obj.id&currentPage=$!currentPage'">取消</a>#end
         #if($!obj.igo_status==10)|<a href="javascript:void(0);" onclick="if(confirm('确定收到会员的运费付款吗?'))window.location.href='$!webPath/admin/integral_order_payok.htm?id=$!obj.id&currentPage=$!currentPage'">确认收款</a>#end
         #if($!obj.igo_status==0)|<a href="javascript:void(0);" dialog_uri="$!webPath/admin/integral_order_fee.htm?id=$!obj.id&currentPage=$!currentPage" dialog_title="调整费用" dialog_width="400" dialog_height="100" dialog_id="order_fee">调整费用</a>#end
         #if($!obj.igo_status==20)|<a href="javascript:void(0);" dialog_uri="$!webPath/admin/integral_order_ship.htm?id=$!obj.id&currentPage=$!currentPage" dialog_title="发货" dialog_width="400" dialog_height="100" dialog_id="order_ship">发货</a>#end
         #if($!obj.igo_status==30)|<a href="javascript:void(0);" dialog_uri="$!webPath/admin/integral_order_ship.htm?id=$!obj.id&currentPage=$!currentPage" dialog_title="发货" dialog_width="450" dialog_height="100" dialog_id="order_ship">修改物流</a>#end
         #if($!obj.igo_status==-1)|<a href="javascript:void(0);" onclick="if(confirm('取消订单将会返回对应的积分，是否继续?'))window.location.href='$!webPath/admin/integral_order_del.htm?id=$!obj.id&currentPage=$!currentPage'">删除</a>#end
         </td>
      </tr>
      #end
      
    </table>
  </div>
  <div class="fenye">
    <input name="igo_status" type="hidden" id="igo_status" value="$!igo_status" />
    <input name="igo_payment" type="hidden" id="igo_payment" value="$!igo_payment" />
    <input name="userName" type="hidden" id="userName" value="$!userName" />
    <input name="igo_order_sn" type="hidden" id="igo_order_sn" value="$!igo_order_sn" />
    <input name="currentPage" type="hidden" id="currentPage" value="$!currentPage" />
    $!gotoPageFormHTML
  </div>
  </form>
</div>
</body>
</html>
